package com.atguigu.guli.service.sms.controller.api;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.sms.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController

@RequestMapping("/api/sms")
public class ApiSmsController {
    @Autowired
    SmsService smsService;
    //发送短新验证码

    @GetMapping("/sendMsg/{mobile}")
    public R sendMsg(@PathVariable("mobile") String mobile){
        smsService.sendMsg(mobile);
        return R.ok();

    }
}
